package com.xframe.domain.views.ui;

import lombok.Data;

/**
 * @Description: 前端查询条件的模型类
 * @ClassName: com.xframe.domain.views.ui.QueryUIModel
 * @Author: xufeng
 * @CreateTime: 2023/12/05 9:15
 **/
@Data
public class QueryUIModel {


    public static final String NAME_SIGE = "query.";

    public static final String NAME_SIGE_HOLDER = "Holder";

    public static final String SELECT = "select";

    public static final String START = "Start";

    public static final String START_HOLDER = "StartHolder";

    public static final String END = "End";

    public static final String END_HOLDER = "EndHolder";

    public static final String DELFLAG_FILTER = "delFlag:EQ:0";
    /**
     * label标签文本
     */
    private String label;
    /**
     * 备注信息 对字段的解释性说明
     */
    private String remark;
    /**
     * 字段名，对应实体模型的属性名称
     */
    private String prop;

    /**
     * 字段名，对应实体模型的属性名称
     */
    private String attrName;

    /**
     * 控件类型
     */
    private String componentName;

    /**
     * 查询条件
     */
    private String op;
    /**
     * 占位符
     */
    private String placeholder;

    /**
     * 默认值
     */
    private String defValue;
    /**
     * 是否显示
     */
    private boolean isShow = true;
    /**
     * 是否可编辑
     */
    private boolean disabled = true;

    /**
     * 是否可修改(表单中使用)
     */
    private boolean updataFlag = true;
    /**
     * 是否多选(表单中使用)
     */
    private boolean multiple = false;
    /**
     * 数据源
     */
    private DataSourceOption dataSourceOption;
}
